<?
if(empty($_GET['id']))
{
	header('location: /');
	exit;
}
if(isset($_GET['prev']))
{
	$prev = true;
}
else
{
	$prev = false;
}
include_once('includes/Savant/Savant3.php');
include_once('includes/class.tokkotai.php');
$_tok = new tokkotai;
$_tpl = new Savant3(array('template_path'=>dirname(__FILE__) . '/templates'));
$_tok->load_resource($_GET['id']);
$_tpl->bc = array
(
	array('Results','/results.php'),
	array($_tok->return_filename() . ' (' . $_tok->return_revision($prev) . ')')
);
$_tpl->display('start.tpl.php');
$_tpl->id = (int) $_GET['id'];
$_tpl->prev = $prev;
$_tpl->display('bin.tpl.php');
$_tpl->display('end.tpl.php');
?>
